package ace.module.weixin.core.impl.dao.repository;


import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.weixin.core.impl.constant.WeixinCoreConstant;
import ace.module.weixin.core.impl.dao.entity.WxsLock;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * 数据库锁 repository.
 *
 * @author Caspar
 */
@DS(WeixinCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface WxsLockRepository extends QuerydslJdbcBaseRepository<WxsLock,Long> {

  WxsLock getByKeyAndDeleteFlag(String key, Long deleteFlag);
}